package com.zood.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zood.dao.ScaleDao;
import com.zood.domain.scale;
import com.zood.service.scaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class scaleServiceImpl extends ServiceImpl<ScaleDao, scale> implements scaleService {

    @Autowired
    private ScaleDao Scale;

    @Override
    public List<scale> getAllByType(int type) {
        List<scale> question = Scale.getAll(type);
        return question;
    }

    @Override
    public List<scale> getAll() {
        return Scale.getALL();
    }
}
